<?php include_once("../config.php"); ?>

<?
//通过获取续费表格的visit内容，更新监测表。然后去监测不同的页面是否有变化。

$renewal_list=select_lines_items($table_Prefix."renewal","nid desc","visit","status = '进行中' group by visit","");
//$renewal_list=select_one_line_all_items($table_Prefix."renewal","","status = '进行中'","");

//print_r2($renewal_list);

foreach ($renewal_list as $k =>$v)
{
   if($v['visit'])
     {
        $_renewal_list[$k][]=$v['visit'];
     }
}

print_r2($_renewal_list);


$p['table']=$table_Prefix."monitor_list";
$p['items']=array("url");
$p['values']=$_renewal_list;
$sql=insert_datas($p);
$query = mysql_query($sql) or die ("error:".mysql_error().$sql);


 ?>

 